<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<%@include file="admin-head.jsp"%>
<body>
<div id="wrapper">
  <%@include file="admin-nav.jsp"%>
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1 class="page-header">用户管理</h1>
      </div>
      <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        <div class="panel panel-default">
          <div class="panel-heading">
            用户列表
          </div>
          <!-- /.panel-heading -->
          <div class="panel-body">
            <div class="col-md-4">
              姓名：<input id="real_name" style="margin-right: 20px">
              <a href="javascript:BuidingTable();" class="btn btn-info m-btn m-btn--icon" style="margin-left: 30px">
									<span>
										<span>
											查询
										</span>
									</span>
              </a>
              <a href="javascript:ClearExcute();" class="btn btn-metal m-btn m-btn--icon" style="margin-left: 30px">
									<span>
										<span>
											重置
										</span>
									</span>
              </a>
              <a href="javascript:openModalAdd();" class="btn btn-info m-btn m-btn--icon" data-toggle="modal" data-target="#m_modal_add">
                                <span>
                                    <span>
                                        添加
                                    </span>
                                </span>
              </a>
            </div>
            <br>
            <br>
            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables">
              <thead>
              <tr>
<%--                <th>_id</th>--%>
                <th>账号</th>
                <th>姓名</th>
                <th>添加时间</th>
                <th>操作</th>
              </tr>
              </thead>
            </table>
            <!-- /.table-responsive -->
          </div>
          <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
      </div>
      <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
    版权所有 &copy; 2023.chang
  </div>
</div>
<div id="m_modal_add" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">
          添加用户
        </h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">
							&times;
						</span>
        </button>
      </div>
      <div class="modal-body">
        <form class="m-form m-form--fit m-form--label-align-right m-form--group-seperator-dashed">
          <div class="m-portlet__body">
            <div class="form-group m-form__group row">
              <div class="col-lg-12">
                <label>
                  账号:
                </label>
                <input id="account" type="text" class="form-control m-input" validation="true" placeholder="请输入登录账号...">
              </div>
            </div>
            <div class="form-group m-form__group row">
              <div class="col-lg-12">
                <label class="">
                  密码:
                </label>
                <input id="password" type="password" class="form-control m-input" validation="true" placeholder="请输入登录密码...">
              </div>
            </div>
            <div class="form-group m-form__group row">
              <div class="col-lg-12">
                <label>
                  姓名:
                </label>
                <input id="real_name" type="text" class="form-control m-input" validation="true" placeholder="请输入真实姓名...">
              </div>
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">
          取消关闭
        </button>
        <button onclick="CommitSave();" type="button" class="btn btn-primary">
          提交保存
        </button>
      </div>
    </div>
  </div>
</div>
<div id="m_modal_edit" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">
          修改用户
        </h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">
                        &times;
                    </span>
        </button>
      </div>
      <div class="modal-body">
        <form class="m-form m-form--fit m-form--label-align-right m-form--group-seperator-dashed">
          <input id="_id" type="hidden">
          <div class="m-portlet__body">
            <div class="form-group m-form__group row">
              <div class="col-lg-12">
                <label>
                  账号:
                </label>
                <input id="account" type="text" class="form-control m-input" validation="true" readonly>
              </div>
            </div>
            <div class="form-group m-form__group row">
              <div class="col-lg-12">
                <label class="">
                  密码:
                </label>
                <input id="password" type="password" class="form-control m-input" validation="true" placeholder="请输入登录密码..">
              </div>
            </div>
            <div class="form-group m-form__group row">
              <div class="col-lg-12">
                <label>
                  姓名:
                </label>
                <input id="real_name" type="text" class="form-control m-input" validation="true" placeholder="请输入真实姓名...">
              </div>
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">
          取消关闭
        </button>
        <button onclick="CommitEdit();" type="button" class="btn btn-primary">
          提交保存
        </button>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript" src="../js/user.js"></script>
</body>
</html>

